// pages/information---/information.js
Page({

	/**
	 * 页面的初始数据
	 */
	data: {
		// 照片以及资料的导航
		infoContentNav: {
			index: 0,
			indexContenNavtLeftStyle: "info-content-navList info-content-navListOne",
			indexContenNavtRightStyle: "info-content-navList"
		},
		// 照片列表
		infoPhotoList: [
			{
				id: "0001",
				imgUrl: "../../images/information/2.jpg"
			},
			{
				id: "0002",
				imgUrl: "../../images/information/3.jpg"
			},
			{
				id: "0003",
				imgUrl: "../../images/information/4.jpg"
			},
			{
				id: "0004",
				imgUrl: "../../images/information/2.jpg"
			},
			{
				id: "0005",
				imgUrl: "../../images/information/3.jpg"
			},
			{
				id: "0006",
				imgUrl: "../../images/information/4.jpg"
			},
			{
				id: "0007",
				imgUrl: "../../images/information/2.jpg"
			},
			{
				id: "0008",
				imgUrl: "../../images/information/3.jpg"
			},
			{
				id: "0009",
				imgUrl: "../../images/information/4.jpg"
			}
		],

		// 个人信息
		information: {
			name: "草莓妹妹",
			charm: 200,
			sex: 1,
			area: "广东，广州"
		},
		// 最新动态
		newDynamic: {
			newDynamicNum: 12,
			newDynamicList: [
				{
					id: "0001",
					imgUrl: "../../images/information/5.jpg"
				},
				{
					id: "0002",
					imgUrl: "../../images/information/6.jpg"
				},
				{
					id: "0003",
					imgUrl: "../../images/information/7.jpg"
				},
				{
					id: "0004",
					imgUrl: "../../images/information/8.jpg"
				},
				{
					id: "0005",
					imgUrl: "../../images/information/9.jpg"
				}
			]
		},
		// 资料
		baseInfo: {
			accout: "123456",
			marital: false,
			profession: "幼儿教师",
			height: "157-162cm"
		},
		assets: {
			house: 2,
			car: 2
		},
		labelList: [
			{
				id: "0001",
				content: "火辣女神"
			},
			{
				id: "0002",
				content: "软萌"
			},
			{
				id: "0003",
				content: "为人超好"
			},
			{
				id: "0004",
				content: "学识渊博"
			},
			{
				id: "0005",
				content: "脾气好"
			}
		],
		signature: "相爱是一种很美好的感觉，相爱是一种很美好的感觉，相爱是一种很美好的感觉，相爱是一种很美好的感觉，相爱是一种很美好的感觉，相爱是一种很美好的感觉",
		liveCondition: {
			smoke: true,
			drink: false,
			cooke: "会一点",
			houseWork: "精通"
		},
		marriageView: {
			together: true,
			otherParent: false,
			chirend: 1,
			marriageNum: 1
		},
		mateSelectionCondition: {
			sex: 2,
			height: "175cm",
			weight: "不限",
			educational: "本科",
			marriageStatus: false,
			income: "8000以上",
			smoke: 2,
			drink: 0
		}
	},

	infoContentNavOne: function () {
		var that = this
		if (that.data.infoContentNav.index === 1) {
			that.setData({
				infoContentNav: {
					index: 0,
					indexContenNavtLeftStyle: "info-content-navList info-content-navListOne",
					indexContenNavtRightStyle: "info-content-navList"
				}
			})
		}
	},
	infoContentNavTwo: function () {
		var that = this
		if (that.data.infoContentNav.index === 0) {
			that.setData({
				infoContentNav: {
					index: 1,
					indexContenNavtLeftStyle: "info-content-navList",
					indexContenNavtRightStyle: "info-content-navList info-content-navListTwo"
				}
			})
		}
		console.log(that.data.infoContentNav.index)
	},

	/**
	 * 生命周期函数--监听页面加载
	 */
	onLoad: function (options) {

	},

	/**
	 * 生命周期函数--监听页面初次渲染完成
	 */
	onReady: function () {

	},

	/**
	 * 生命周期函数--监听页面显示
	 */
	onShow: function () {

	},

	/**
	 * 生命周期函数--监听页面隐藏
	 */
	onHide: function () {

	},

	/**
	 * 生命周期函数--监听页面卸载
	 */
	onUnload: function () {

	},

	/**
	 * 页面相关事件处理函数--监听用户下拉动作
	 */
	onPullDownRefresh: function () {

	},

	/**
	 * 页面上拉触底事件的处理函数
	 */
	onReachBottom: function () {

	},

	/**
	 * 用户点击右上角分享
	 */
	onShareAppMessage: function () {

	}
})